package br.com.vdn.negocio;

import java.util.HashMap;
import java.util.Map;

import org.hibernate.Criteria;
import org.hibernate.Session;

import br.com.util.hibernate.business.HbNgc;
import br.com.vdn.vo.ItensVendaVo;

@SuppressWarnings("unchecked")
public class ItensVendaNgc extends HbNgc<ItensVendaVo>
{
	private Map filtroPropriedade = new HashMap();
	private Map restritores = new HashMap();
	
	private static ItensVendaNgc instancia = null;
	
	private ItensVendaNgc()
	{
	}
	
	public static ItensVendaNgc getInstancia()
	{
		if (instancia == null)
		{
			instancia = new ItensVendaNgc();
		}
		return instancia;
	}
	
	@Override
	protected Criteria montaCriteria(Session session, int join)
	{
		Criteria criteria = session.createCriteria(ItensVendaVo.class);
		return criteria;
	}

	@Override
	protected Map filtroPropriedade()
	{
		return filtroPropriedade;
	}

	@Override
	protected Map restritores()
	{
		return restritores;
	}

}
